#ifndef _DEF_SINGLETON_H_
#define _DEF_SINGLETON_H_

namespace sd 
{
namespace tools
{



template< class T>
class defSingleton
{

public:
	static T& getInstance()
	{
		static T instance;
		return instance;
	}
protected:
	defSingleton(){}
private:
	
	defSingleton(const defSingleton&);
	defSingleton& operator =(const defSingleton&);

};


}//tools
}//sd



#endif//_DEF_SINGLETON_H_
